package org.albertsanso.yoigo.shopchat.listener;

import org.albertsanso.yoigo.shopchat.R;
import org.albertsanso.yoigo.shopchat.YoigoShopChatActivity;
import org.albertsanso.yoigo.shopchat.co.ShopChatComponent;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class EnviarConsultaButtonListener implements OnClickListener {

	public void onClick(View v) {
		EditText et = (EditText) activity.findViewById(R.id.editText1);
		String message = et.getText().toString();
		et.setText("");
		activity.startEnviaMensaje(message);
	}
	
	private ShopChatComponent shopChatComponent;
	private YoigoShopChatActivity activity;
	
	public YoigoShopChatActivity getActivity() {
		return activity;
	}

	public void setActivity(YoigoShopChatActivity activity) {
		this.activity = activity;
	}

	public ShopChatComponent getShopChatComponent() {
		return shopChatComponent;
	}

	public void setShopChatComponent(ShopChatComponent shopChatComponent) {
		this.shopChatComponent = shopChatComponent;
	}
}